using System.Collections;
using System.Collections.Generic;
using UnityEditor.SceneManagement;
using UnityEditor;
using UnityEngine;

public class EditorSceneReader 
{
    // Create a new drop-down menu in Editor named "Examples" and a new option called "Open Scene"
    [MenuItem("Scenes/Open main Scene")]
    static void OpenScene()
    {
        if (EditorSceneManager.SaveCurrentModifiedScenesIfUserWantsTo())
        //Open the Scene in the Editor (do not enter Play Mode)
            EditorSceneManager.OpenScene("Assets/Scenes/main.unity");
    }

    // Create a new drop-down menu in Editor named "Examples" and a new option called "Open Scene"
    [MenuItem("Scenes/Open game Scene")]
    static void OpenGameScene()
    {
        if (EditorSceneManager.SaveCurrentModifiedScenesIfUserWantsTo())
            //Open the Scene in the Editor (do not enter Play Mode)
            EditorSceneManager.OpenScene("Assets/GameRes/Scenes/Game.unity");
    }
}
